<input type="text" input-focus="page-shop-goodsAttr::skuAdd" style="position: fixed;left: 99999999px;" />

<div id="goodsAttrSkuAdd" style="padding: 10px;">
	<div class="form-group">
		<label>属性列表：</label>
		<div class="panel panel-default">
			<div class="panel-body">
				<div av-is="shopGoodsSpuOption" av-for="(v,k)shopGoodsSpuOption" style="margin-bottom: 20px;">
					<div class="label label-default" style="font-size: 100%;display: block;margin-bottom: 10px;">
						#{{parseInt(k)+1}}{{v.shop_goods_spu_name}}
					</div>
					<label av-if="v.son" av-for="(sonv,sonk)v.son" class="checkbox-inline" style="margin-right: 10px;">
						<input type="radio" id="shop_goods_spu_id" av-attr="[name] 'shop_goods_spu_id'+k" style="margin-left: -16px;"
							av-attr="[value] sonv.shop_goods_spu_id"
							av-attr="[checked] sonv.shop_goods_spu_required==1?'checked':false" checkbox="checkbox-spu-skuAdd" />
						{{sonv.shop_goods_spu_name}}
					</label>
					<div av-else style="color: #999;text-align: center;">无选项</div>
				</div>
			</div>
		</div>
	</div>

	<div av-is="applicationCheckYitaoshop()" class="form-group">
		<label>指定售卖角色：</label>
		<select class="form-control" name="shop_goods_sku_admin_id" av-event="[change] eventSelectRoleChange(:node,:event)">
			<!-- <option value="">-请选择-</option> -->
			<option av-for="(role, index)adminOption" av-is="role.admin_type==1" av-attr="[value] role.admin_id"
				av-attr="[selected] admin_id==role.admin_id? 'selected':false">
				{{role.admin_name}}[{{role.admin_user_count}}人]
			</option>
		</select>
	</div>
	<div av-is="applicationCheckYitaoshop() && admin_id!='visitor' && shop_goods_index!=1 && admin_id!='shop_manager' && admin_id!='chief_inspector' && admin_id!='founder'"
		class="form-group">
		<label>店长差价：</label>
		<input class="form-control" type="text" placeholder="输入差价" name="shop_manager_difference">
	</div>
	<div av-is="applicationCheckYitaoshop() && admin_id!='visitor' && shop_goods_index!=1 &&  admin_id!='chief_inspector' && admin_id!='founder'" class="form-group">
		<label>店长一级提成：</label>
		<input class="form-control" type="text" placeholder="输入提成" name="shop_manager_royalty" >
	</div>
	<div av-is="applicationCheckYitaoshop() && admin_id!='visitor' && shop_goods_index!=1 &&  admin_id!='chief_inspector' && admin_id!='founder'" class="form-group">
		<label>店长二级提成：</label>
		<input class="form-control" type="text" placeholder="输入提成" name="shop_manager_royalty">
	</div>
	<!-- <div av-is="applicationCheckYitaoshop() && admin_id!='visitor' && shop_goods_index!=1 &&  admin_id!='chief_inspector' && admin_id!='founder'" class="form-group">
		<label>店长三级提成：</label>
		<input class="form-control" type="text" placeholder="输入提成" name="shop_manager_royalty" >
	</div> -->
	<div av-is="applicationCheckYitaoshop() && admin_id!='visitor' && shop_goods_index!=1 && admin_id!='chief_inspector' && admin_id!='founder'" class="form-group">
		<label>总监差价：</label>
		<input class="form-control"type="text" placeholder="输入差价" name="chief_inspector_difference" >
	</div>
	<div av-is="applicationCheckYitaoshop() && admin_id!='visitor' && shop_goods_index!=1 && admin_id!='founder'" class="form-group">
		<label>总监一级提成：</label>
		<input class="form-control" type="text" placeholder="输入提成" name="chief_inspector_royalty" >
	</div>
	<!-- <div av-is="applicationCheckYitaoshop() && admin_id!='visitor' && shop_goods_index!=1 && admin_id!='founder'" class="form-group">
		<label>总监二级提成：</label>
		<input class="form-control" type="text" placeholder="输入提成" name="chief_inspector_royalty" >
	</div> -->

	<div av-is="applicationCheckYitaoshop() && admin_id!='visitor' && shop_goods_index!=1 && admin_id!='founder'"
		class="form-group">
		<label>创始人差价：</label>
		<input class="form-control" type="text" placeholder="输入差价" name="founder_difference">
	</div>
	<div av-is="applicationCheckYitaoshop() && admin_id!='visitor' && shop_goods_index!=1" class="form-group">
		<label>创始人一级提成：</label>
		<input class="form-control" type="text" placeholder="输入提成" name="founder_royalty" >
	</div>
	<!-- <div av-is="applicationCheckYitaoshop() && admin_id!='visitor' && shop_goods_index!=1" class="form-group">
		<label>创始人二级提成：</label>
		<input class="form-control" type="text" placeholder="输入提成" name="founder_royalty" >
	</div> -->
	<div av-is="applicationCheckYitaoshop() && admin_id!='visitor' && shop_goods_index!=1" class="form-group">
		<label>创始人区域管理费：</label>
		<div class="input-group">
			<input  type="text" placeholder="输入区域管理费" class="form-control"
				name="founder_region_money">
			<span class="input-group-addon">元</span>
		</div>
	</div>
	<div class="form-group">
		<label>库存：</label>
		<input type="text" class="form-control" placeholder="输入库存" name="shop_goods_sku_stock">
	</div>
	<div class="form-group">
		<label>成本价：</label>
		<div class="input-group">
			<input type="text" class="form-control" placeholder="输入成本价" name="shop_goods_sku_cost_price">
			<span av-if="shop_goods_property==0" class="input-group-addon">元</span>
			<span av-elseif="shop_goods_property==1" class="input-group-addon">积分数量</span>
		</div>
	</div>
	<div class="form-group">
		<label>市场价：<span style="color: #999;">可不填</span></label>
		<div class="input-group">
			<input type="text" class="form-control" placeholder="输入市场价" name="shop_goods_sku_market_price">
			<span av-if="shop_goods_property==0" class="input-group-addon">元</span>
			<span av-elseif="shop_goods_property==1" class="input-group-addon">积分数量</span>
		</div>
	</div>
	<div class="form-group">
		<label>售卖单价：</label>
		<div class="input-group">
			<input type="text" class="form-control" placeholder="输入售卖单价" name="shop_goods_sku_price">
			<span av-if="shop_goods_property==0" class="input-group-addon">元</span>
			<span av-elseif="shop_goods_property==1" class="input-group-addon">积分数量</span>
		</div>
	</div>
<!-- e麦商场 积分加人民币购买    积分附加人民币   -->
	<div av-if="applicationCheckEmshop() && shop_goods_property==1" class="form-group" >
		<label>附加人民币：<span style="color: #999;">可不填</span></label>
		<div class="input-group">
			<input type="text" class="form-control" placeholder="输入附加人民币" name="shop_goods_sku_additional_money">
			<span class="input-group-addon">元</span>
		</div>
	</div>
	<!-- 人民币附加积分 -->
	<div av-elseif="applicationCheckEmshop() && shop_goods_property==0" class="form-group" >
		<label>附加积分：<span style="color: #999;">可不填</span></label>
		<div class="input-group">
			<input type="text" class="form-control" placeholder="输入附加积分" name="shop_goods_sku_additional_credit">
			<span class="input-group-addon">积分数量</span>
		</div>
	</div>

	<div class="form-group">
		<label>描述：</label>
		<textarea class="form-control" rows="3" placeholder="输入描述" name="shop_goods_sku_info"></textarea>
	</div>
	<br />
	<button type="button" class="btn btn-primary btn-block" av-event="[click] eventSubmit(:node,:event)">确定添加</button>
</div>